package script

import (
	"database/sql"
	"log"
)
var db = &sql.DB{}
func init()  {
	db, err := sql.Open("mysql", "edurd_wr:hsilgne@tcp(10.95.31.38:5555)/openplat_wj?charset=utf8")
	if err != nil{
		log.Fatalln(err)
	}
	defer db.Close()
	err = db.Ping()
	if err != nil{
		log.Fatalln(err)
	}
}

func getBotList()  {
	rows, err := db.Query("SELECT * FROM bot_info")
	print(rows,err)
}

func unInstallBot(botId string)  {

}

func writeCsv()  {

}

